
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:tianpu_edu/Classes/libs/tool_show_loading.dart';

abstract class BaseWidgetView {

  /// 标题
  String title = '界面名称';
  /// 默认是 _isBuildDefault
  bool isBuild = false;
  ///当前尺寸
  Size size;

  /// 子类实现，构建各自页面UI控件 相当于setContentView()
  Widget buildWidget(BuildContext context);
  /// 加载中的类。。。
  ShowLoadingViewDialog _loadingViewDialog = ShowLoadingViewDialog();

  void showLoadingView(context) => _loadingViewDialog.pushShowLoading(context);

  void dismissLoadingView(context,error) => _loadingViewDialog.dismissShowLoading(context,error: error);
  /// text的样式
  TextStyle textStyle({Color color = Colors.black, double fontSize = 18})
  => TextStyle(color: color,fontSize: fontSize,fontFamily:'Raleway' );


}